package com.emergency.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.util.Date;
/**
 * 天气类
 * */
@Entity
@Table(name="bus_scenar_weather")
public class ScenarWeather extends BaseEntity{

	/**风向*/
	private String direction;
	/**风力*/
	private String wind;
	/**温度 摄氏度*/
	private float temperature;
	/**湿度*/
	private float wet;
	/**稳定度*/
	private String stability;

	/**想定*/
	@JsonIgnore
	@OneToOne(targetEntity=Scenar.class,fetch= FetchType.EAGER)
	@JoinColumn(name="scenar_id",referencedColumnName="id")
	private Scenar scenar;


	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public String getWind() {
		return wind;
	}

	public void setWind(String wind) {
		this.wind = wind;
	}

	public float getTemperature() {
		return temperature;
	}

	public void setTemperature(float temperature) {
		this.temperature = temperature;
	}

	public float getWet() {
		return wet;
	}

	public void setWet(float wet) {
		this.wet = wet;
	}

	public String getStability() {
		return stability;
	}

	public void setStability(String stability) {
		this.stability = stability;
	}

	public Scenar getScenar() {
		return scenar;
	}

	public void setScenar(Scenar scenar) {
		this.scenar = scenar;
	}

}